package com.bjdd.jdy.ui.hotMap;

import com.baidu.location.BDLocation;
import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.HotMapBean;

import java.util.List;

import rx.Observable;

/**
 * Created by Administrator on 2017/4/19.
 */

public interface HotMapContract {
    interface Model extends BaseModel{
        Observable<BaseResult<List<HotMapBean>>> getHotMap(String token,String cityName,int day);
    }
    interface View extends BaseView{
        void setCenter(BDLocation bdLocation);
        void success(List<HotMapBean> data);
    }
    public abstract class Presenter extends BasePresenter<HotMapContract.Model,HotMapContract.View>{
        abstract void getHotMap(String cityName,int day);
    }
}
